package com.winspread.app.scanview

import android.view.View
import com.winspread.app.R
import com.winspread.app.databinding.ActivityScanViewBinding
import com.winspread.mvvm.base.vm.BaseNotVmActivity
import com.winspread.ui.scanview.PointPositionKt
import java.util.Random

class ScanViewActivity : BaseNotVmActivity<ActivityScanViewBinding>(R.layout.activity_scan_view) {




    fun viewClick(view: View?) {
        binding.idRadarView.addPoint(PointPositionKt().setRank(Random().nextInt(80)))
    }

    fun buttonClick(view: View?) {
        binding.idRadarView.clearPoint()
    }

    fun stopScan(view: View?) {
        binding.idRadarView.setScanStop()
    }

    fun startScan(view: View?) {
        binding.idRadarView.setStartScan()
    }
}